
<?php

   function shouldBeFiltered($mail_id){
        $filter = array('nobody', 'no-body', 'facebook', 'noreply');
        
        echo count($mail_id) . " ";
        echo strlen($mail_id);
        foreach($filter as $flt){
            if(strlen($mail_id) >= strlen($flt))
              if(strpos($mail_id,$flt) !== false) return true;
            else 
              if(strpos($flt,$mail_id) !== false) return true;
        }
        return false;
   }
   
   if(shouldBeFiltered("forwarding-noreply@google.com")){
        echo "filtered";
   }
   else {
        echo "not filtered";
   }
    
?>